<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title><?php echo $event_data['name'] ?></title>

<link href="__PUBLIC__/plugins/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<link href="__PUBLIC__/themes/wechat/cupid/style.css" rel="stylesheet">
<link href="__PUBLIC__/themes/global/global.css" rel="stylesheet">

<script src="__PUBLIC__/plugins/jquery/2.1.3/jquery.min.js"></script>
<script src="__PUBLIC__/plugins/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/js/global.js"></script>
<script src="__PUBLIC__/js/wechat/cupid/beauty.js"></script>
<script>
$(function(){
  Beauty.init(<?php echo json_encode( $config ) ?>);
  $('.container').css( 'minHeight' , $(window).height() );
});
function onBridgeReady(){
  WeixinJSBridge.call('hideOptionMenu');
}

if (typeof WeixinJSBridge == "undefined"){
  if( document.addEventListener ){
    document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
  }else if (document.attachEvent){
    document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
    document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
  }
}else{
  onBridgeReady();
}
</script>
</head>
<body>
<div class="body" style="display:none" >
  <img src="<?php echo U('Public/themes/wechat/cupid/images/share_icon.jpg' , '' , true , true ) ?>" >
</div>
<div class="container beauty">
  <div class="male">
    <?php foreach($male_data as $row) :?>
    <div class="beauty_item" data-id="<?php echo $row['id'] ?>">
      <img src="<?php echo U($row['icon']) ?>" >
      <p><?php echo $row['name'] ?></p>
    </div>
    <?php endforeach ; ?>
  </div>
  
  <div class="female">
    <?php foreach($female_data as $row) :?>
    <div class="beauty_item" data-id="<?php echo $row['id'] ?>">
      <img src="<?php echo U($row['icon']) ?>" >
      <p><?php echo $row['name'] ?></p>
    </div>
    <?php endforeach ; ?>
  </div>
  
  <div class="beauty-btn-line">
    <a class="block-btn block-btn-submit" id="submit_beauty" href="<?php echo $config['result_url'] ?>">提交</a>
  </div>
  
</div>
</body>
</html>